package org.speed.jdk;

import java.lang.reflect.InvocationTargetException;

import org.springframework.util.MethodInvoker;
import org.springframework.util.SystemPropertyUtils;

public class SpringUtils {
	public static void main(String[] args) throws Exception {
		
		/**
		MethodInvoker methodInvoker = new MethodInvoker();
		
		TUser user = new TUser();
		methodInvoker.setTargetClass(TUser.class);
		methodInvoker.setTargetMethod("toPrintName");
		//methodInvoker.setTargetObject(user);
		methodInvoker.prepare();
		
		methodInvoker.invoke();**/
		
		
		String aString = SystemPropertyUtils.resolvePlaceholders("${user.dir}");
		System.out.println(aString);
		
		
	}
	
	
	public static class TUser {
		
		private String name = ":";
		
		public void toPrintName() {
			System.out.println(name);
		}
	}

}
